'use strict';

function collect_last_element(collection) {
  return collection.pop();
}

module.exports = collect_last_element;
// var collection = [1, 2, 3, 4, 5];
// console.log(collect_last_element(collection));